home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tchk050.arc / COLOR.H next >
C/C++ Source or Header  |  1988-11-19  |  1KB  |  45 lines

  1. /* TCHK 0.50 - Howard Kapustein's Turbo C library     11-18-87 */
  2. /* Copyright (C) 1987, Howard Kapustein.  All rights reserved. */
  3.  
  4. /* color.h  -  header file containing color definitions */
  5.  
  6. #ifndef COLORDEF
  7.  
  8. #define BLACK       0x0           /* HEX 0-7: normal colors */
  9. #define BLUE        0x1
  10. #define GREEN       0x2
  11. #define CYAN        0x3
  12. #define RED         0x4
  13. #define MAGENTA     0x5
  14. #define BROWN       0x6
  15. #define WHITE       0x7
  16. #define LBLACK      0x8           /* HEX 8-F: highlighted colors */
  17. #define LBLUE       0x9
  18. #define LGREEN      0xA
  19. #define LCYAN       0xB
  20. #define LRED        0xC
  21. #define LMAGENTA    0xD
  22. #define LBROWN      0xE
  23. #define YELLOW      0xE
  24. #define LWHITE      0xF
  25.  
  26. #define B_BLACK       0x00        /* HEX 10-70: background colors */
  27. #define B_BLUE        0x10
  28. #define B_GREEN       0x20
  29. #define B_CYAN        0x30
  30. #define B_RED         0x40
  31. #define B_MAGENTA     0x50
  32. #define B_BROWN       0x60
  33. #define B_WHITE       0x70
  34.  
  35. #define BLINK         0x80        /* blinking color */
  36. #define BOLD          0x8         /* bold (highlight) color */
  37. #define INVERSE       0x70        /* inverse video (black on white) */
  38. #define REVERSE       0x70
  39. #define NORMAL        0x7         /* white on black */
  40. #define UNDERLINE     0x1         /* Underline (mono only) */
  41.  
  42. #define COLORDEF 1
  43.  
  44. #endif
  45.